
<table width="100%" border="1">
    <tr>
        <th>订单号</th>
        <th>时间</th>
        <th>操作</th>
        <th>状态</th>
    </tr>
    <?php foreach ($my_order as $order): ?>
    <tr>
        <td><?php echo $order['order_id'];?></td>
        <td><?php echo $order['place_time'];?></td>
        <td><a href="<?php echo(site_url('user/order/del_order').'/'.$order['order_id']);?>">删除</a>&nbsp;<a href="<?php echo(site_url('user/order/confirm_order'));?>">确认</a> </td>
        <td><?php echo order_state($order['state']);?></td>
    </tr>
    <tr>
        <th rowspan="4">订单详情</th>
    </tr>
      <tr>
        <th>文件编号</th><th>文件名</th><th>打印份数</th>
    </tr>
        <?php foreach ($order['message'] as $info): ?>
        <tr>
            <td>
                <?php echo $info['file_id']; ?>
            </td>
            <td>
                <?php echo $info['title']; ?>
            </td>
            <td>
                <?php echo $info['file_num']; ?>
            </td>
        </tr>
        <?php endforeach ?>
    <?php endforeach; ?>
</table>